package com.mikey.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author :Mikey
 * @description :
 * @create :2022-08-31 19:42:00
 */
@Configuration
public class MikeyRule {
    @Bean
    public IRule getRule(){
        //return new MikeyMyRule();自定义算法
        return new RandomRule();
    }
}
